
            <div id="dt_example">
                <div id="container">
                    <div id="demo">
                        <div style="font-size: 15px;font-style: oblique;font-weight: bold;margin-bottom: 10px;"><?php echo isset($taskTitle)?$taskTitle:'Task'; ?> Table</div>
                        <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Creator</th>
                                    <th>Start Date</th>
                                    <th>End Date</th>
                                    <th>Task Status</th>
                                    <th>Task Type</th>
                                    <th>View More</th>
                                    <th>Edit</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                foreach($tasks as $task){
                                    echo"<tr>";
                                        echo "<td align='center'>{$task->name}</td>";
                                        echo "<td align='center'>{$task->firstName} {$task->lastName}</td>";
                                        echo "<td align='center'>{$task->startDate}</td>";
                                        echo "<td align='center'>{$task->endDate}</td>";
                                        echo "<td align='center'>{$task->taskStatus}</td>";
                                        echo "<td align='center'>{$task->taskType}</td>";
                                        echo "<td align='center'><a href='index.php?page=task&taskId={$task->id}' class='nyroModal'>View More</a></td>";
                                        echo "<td align='center'><a onclick='load_link(\"index.php?page=task&taskId={$task->id}&action=update\", loadTaskPage);'>Edit</a></td>";
                                    echo "</tr>";
                                }
                                ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
